
package com.hitrust.gs.vo;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

/*
	Author    :wuyang
	CreateTime:2013-10-24 14:16:17
*/
public class ProductTiptopStockVO implements GSBaseBean {

	private String concentricity_code; //集中编码
	private String name; //产品名称
	private String product_unit; //单位
	private String unit_price; //单价
	private String spec; //规格
	private String model; //型号
	private String drawing_piece_code; //图 件 号
	private String providername; //供应商
	private String max_count; //最高库存
	private String warehouse_code; //所属仓库
	private String last_update_time; //最后更新时间
	private String status; //状态
	
	public String getConcentricity_code() {
		return concentricity_code;
	}

	public void setConcentricity_code(String concentricity_code) {
		this.concentricity_code = concentricity_code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getProduct_unit() {
		return product_unit;
	}

	public void setProduct_unit(String product_unit) {
		this.product_unit = product_unit;
	}

	public String getUnit_price() {
		return unit_price;
	}

	public void setUnit_price(String unit_price) {
		this.unit_price = unit_price;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getDrawing_piece_code() {
		return drawing_piece_code;
	}

	public void setDrawing_piece_code(String drawing_piece_code) {
		this.drawing_piece_code = drawing_piece_code;
	}

	public String getProvidername() {
		return providername;
	}

	public void setProvidername(String providername) {
		this.providername = providername;
	}

	public String getMax_count() {
		return max_count;
	}

	public void setMax_count(String max_count) {
		this.max_count = max_count;
	}

	public String getWarehouse_code() {
		return warehouse_code;
	}

	public void setWarehouse_code(String warehouse_code) {
		this.warehouse_code = warehouse_code;
	}

	public String getLast_update_time() {
		return last_update_time;
	}

	public void setLast_update_time(String last_update_time) {
		this.last_update_time = last_update_time;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Object process(ResultSet aResultSet) throws SQLException {
		ProductTiptopStockVO vo = new ProductTiptopStockVO();
		 vo.concentricity_code = isNull(aResultSet.getString("concentricity_code"));
		 vo.name = isNull(aResultSet.getString("name")); 
		 vo.product_unit = isNull(aResultSet.getString("product_unit"));
		 vo.unit_price = isNull(aResultSet.getString("unit_price"));
		 vo.spec = isNull(aResultSet.getString("spec"));
		 vo.model = isNull(aResultSet.getString("model"));
		 vo.drawing_piece_code = isNull(aResultSet.getString("drawing_piece_code"));
		 vo.providername = isNull(aResultSet.getString("providername"));
		 vo.max_count = isNull(aResultSet.getString("max_count"));
		 vo.warehouse_code = isNull(aResultSet.getString("orgname"));
		 vo.last_update_time = isNull(aResultSet.getString("last_update_time"));
		
		 String strStatus = aResultSet.getString("status");
		 if (strStatus != null) {
			if (strStatus.equals("1")) {
				 vo.status = "启用";
			}else{
				vo.status = "不启用";
			}
		}
		
		return vo;
	}
	
	
	private String isNull(String value){
		if (value == null) {
			return "";
		}else{
			return value;
		}
	}


	
	

}
